// samsting : this file is auto create.

#include "Rds_Region/2014-08-15/DescribeDBInstancesResponse.h"

namespace aliyun { namespace Rds_Region {

DescribeDBInstancesResponse::DescribeDBInstancesResponse() {
}

const string& DescribeDBInstancesResponse::DBInstance::ReadOnlyDBInstanceId::GetDBInstanceId(void) const {
  return DBInstanceId_;
}

const std::vector<DescribeDBInstancesResponse::DBInstance::ReadOnlyDBInstanceId>& DescribeDBInstancesResponse::DBInstance::GetReadOnlyDBInstanceIds(void) const {
  return ReadOnlyDBInstanceIds_;
}

int DescribeDBInstancesResponse::DBInstance::GetInsId(void) const {
  return InsId_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetDBInstanceId(void) const {
  return DBInstanceId_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetDBInstanceDescription(void) const {
  return DBInstanceDescription_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetPayType(void) const {
  return PayType_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetDBInstanceType(void) const {
  return DBInstanceType_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetRegionId(void) const {
  return RegionId_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetExpireTime(void) const {
  return ExpireTime_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetDBInstanceStatus(void) const {
  return DBInstanceStatus_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetEngine(void) const {
  return Engine_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetDBInstanceNetType(void) const {
  return DBInstanceNetType_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetConnectionMode(void) const {
  return ConnectionMode_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetLockMode(void) const {
  return LockMode_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetInstanceNetworkType(void) const {
  return InstanceNetworkType_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetLockReason(void) const {
  return LockReason_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetZoneId(void) const {
  return ZoneId_;
}

bool DescribeDBInstancesResponse::DBInstance::GetMutriORsignle(void) const {
  return MutriORsignle_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetCreateTime(void) const {
  return CreateTime_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetEngineVersion(void) const {
  return EngineVersion_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetGuardDBInstanceId(void) const {
  return GuardDBInstanceId_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetTempDBInstanceId(void) const {
  return TempDBInstanceId_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetMasterInstanceId(void) const {
  return MasterInstanceId_;
}

const string& DescribeDBInstancesResponse::DBInstance::GetVpcId(void) const {
  return VpcId_;
}

const std::vector<DescribeDBInstancesResponse::DBInstance>& DescribeDBInstancesResponse::GetItems(void) const {
  return Items_;
}

int DescribeDBInstancesResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeDBInstancesResponse::GetTotalRecordCount(void) const {
  return TotalRecordCount_;
}

int DescribeDBInstancesResponse::GetPageRecordCount(void) const {
  return PageRecordCount_;
}

const char* DescribeDBInstancesResponse::BaseKey(void) {
  return "DescribeDBInstancesResponse";
}

void DescribeDBInstancesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Items__length = 0;
  UnmarshallerInt(Items__length, response_map, "DescribeDBInstancesResponse.Items.Length");
  if(Items__length >= 0) {
    Items_.resize(Items__length);
    for(int i1 = 0; i1 < Items__length; i1++) {
      int Items_i1_ReadOnlyDBInstanceIds__length = 0;
      UnmarshallerInt(Items_i1_ReadOnlyDBInstanceIds__length, response_map, "DescribeDBInstancesResponse.Items[+"+string_ValueOfInt(i1)+"].ReadOnlyDBInstanceIds.Length");
      if(Items_i1_ReadOnlyDBInstanceIds__length >= 0) {
        Items_[i1].ReadOnlyDBInstanceIds_.resize(Items_i1_ReadOnlyDBInstanceIds__length);
        for(int i2 = 0; i2 < Items_i1_ReadOnlyDBInstanceIds__length; i2++) {
          UnmarshallerString(Items_[i1].ReadOnlyDBInstanceIds_[i2].DBInstanceId_, response_map, "DescribeDBInstancesResponse.Items[+"+string_ValueOfInt(i1)+"].ReadOnlyDBInstanceIds["+string_ValueOfInt(i2)+"].DBInstanceId");
        } // for(int i2 = 0; i2 < Items_i1_ReadOnlyDBInstanceIds__length; i2++) {
      } // if(Items_i1_ReadOnlyDBInstanceIds__length >= 0) {

      UnmarshallerInt(Items_[i1].InsId_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].InsId");
      UnmarshallerString(Items_[i1].DBInstanceId_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].DBInstanceId");
      UnmarshallerString(Items_[i1].DBInstanceDescription_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].DBInstanceDescription");
      UnmarshallerString(Items_[i1].PayType_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].PayType");
      UnmarshallerString(Items_[i1].DBInstanceType_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].DBInstanceType");
      UnmarshallerString(Items_[i1].RegionId_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].RegionId");
      UnmarshallerString(Items_[i1].ExpireTime_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].ExpireTime");
      UnmarshallerString(Items_[i1].DBInstanceStatus_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].DBInstanceStatus");
      UnmarshallerString(Items_[i1].Engine_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].Engine");
      UnmarshallerString(Items_[i1].DBInstanceNetType_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].DBInstanceNetType");
      UnmarshallerString(Items_[i1].ConnectionMode_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].ConnectionMode");
      UnmarshallerString(Items_[i1].LockMode_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].LockMode");
      UnmarshallerString(Items_[i1].InstanceNetworkType_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].InstanceNetworkType");
      UnmarshallerString(Items_[i1].LockReason_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].LockReason");
      UnmarshallerString(Items_[i1].ZoneId_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].ZoneId");
      UnmarshallerBool(Items_[i1].MutriORsignle_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].MutriORsignle");
      UnmarshallerString(Items_[i1].CreateTime_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].CreateTime");
      UnmarshallerString(Items_[i1].EngineVersion_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].EngineVersion");
      UnmarshallerString(Items_[i1].GuardDBInstanceId_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].GuardDBInstanceId");
      UnmarshallerString(Items_[i1].TempDBInstanceId_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].TempDBInstanceId");
      UnmarshallerString(Items_[i1].MasterInstanceId_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].MasterInstanceId");
      UnmarshallerString(Items_[i1].VpcId_, response_map, "DescribeDBInstancesResponse.Items["+string_ValueOfInt(i1)+"].VpcId");
    } // for(int i1 = 0; i1 < Items__length; i1++) {
  } // if(Items__length >= 0) {

  UnmarshallerInt(PageNumber_, response_map, "DescribeDBInstancesResponse.PageNumber");
  UnmarshallerInt(TotalRecordCount_, response_map, "DescribeDBInstancesResponse.TotalRecordCount");
  UnmarshallerInt(PageRecordCount_, response_map, "DescribeDBInstancesResponse.PageRecordCount");
}


} } // namespace aliyun { namespace Rds_Region {

// end of file 
